load("@rules_cc//cc:defs.bzl", "cc_library")
load("//bazel:config.bzl", "PLATFORM_LOCAL_DEFINES")

package(default_visibility = ["//:__subpackages__"])

exports_files(["test_main.c"])

cc_library(
    name = "test_utils",
    strip_include_prefix = ".",
    hdrs = ["test_utils.h"],
    srcs = ["test_utils.c"],
)

cc_library(
    name = "common",
    hdrs = ["test_common.h"],
    defines = PLATFORM_LOCAL_DEFINES,
    strip_include_prefix = ".",
    deps = [
        ":test_utils",
        "//libarchive:internal_hdrs",
    ],
)
